package com.ebo.synframework.synroom.executor.pool;

class PoolStateWrap implements PoolState {

    private final PoolState poolState;

    public PoolStateWrap(PoolState poolState) {
        this.poolState = poolState;
    }

    @Override
    public int getActiveThreadNum() {
        return poolState.getActiveThreadNum();
    }

    @Override
    public long getCompleteTaskNum() {
        return poolState.getCompleteTaskNum();
    }

    @Override
    public int getMaxThreadNumInHistory() {
        return poolState.getMaxThreadNumInHistory();
    }

    @Override
    public int getQueueTaskNum() {
        return poolState.getQueueTaskNum();
    }

    @Override
    public long getScheduleTaskNum() {
        return poolState.getScheduleTaskNum();
    }

    @Override
    public int getThreadNum() {
        return poolState.getThreadNum();
    }

}
